﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using nsadv.Statistic.Domain;

namespace nsadv.Statistic.Web.ViewModels
{
	public class StatisticBannerDetailRow
	{
		public Banner Banner { get; set; }
		public int Shows { get; set; }
		public int Expands { get; set; }
		public int Clicks { get; set; }
	}

	public class StatisticPlatformDetailRow
	{
		public Platform Platform { get; set; }
		public int Shows { get; set; }
		public int Clicks { get; set; }	
	}

	public class StatisticDetailsModel
	{
		private readonly List<StatisticBannerDetailRow> _bannerRows = new List<StatisticBannerDetailRow>();
		public List<StatisticBannerDetailRow> BannerRows { get { return _bannerRows; } }

		private readonly List<StatisticPlatformDetailRow> _platformRows = new List<StatisticPlatformDetailRow>();
		public List<StatisticPlatformDetailRow> PlatformRows { get { return _platformRows; } }

		/// <summary>
		/// Платформа устройства (iPhone, Android, etc.)
		/// </summary>
		public string PlatformId { get; set; }
		/// <summary>
		/// Рекламная площадка
		/// </summary>
		public string PlaceId { get; set; }

	}
}